package com.threeti.mecool.core.infrastructure.persistence;

import com.threeti.mecool.core.domain.model.CommonKVT;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface CommonKVTRepository extends JpaRepository<CommonKVT, Long> {
    @Query("from CommonKVT where key=? order by listOrder")
    List<CommonKVT> findByKey(String key);
}
